import request from "../utils/request";

export const findUserList = (current, size, userVO) => {
  return request({
    url: "/system/user/findUserPage",
    method: "post",
    params: {
      current,
      size
    },
    data: userVO
  });
};
// 删除oss中的图片
export const deleteImgFile = fileUrl => {
  return request({
    url: "/deleteImgFile",
    method: "post",
    params: {
      fileUrl
    }
  });
};

// 添加用户
export const saveUser = (user) => {
  return request({
    url: "/system/user/addUser",
    method: "post",
    data:user
  });
};
